package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.server.common.entity.enumeration.OrderReportType;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-03-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "OrderReportSaveDTO", description = "")
public class OrderReportSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 清算日期
     */
    @ApiModelProperty(value = "清算日期")
    @Length(max = 20, message = "清算日期长度不能超过20")
    private String settDate;
    /**
     * 汇总类型 #OrderReportType{CPS_ORDER:商家收款;IOTCL:充电线;}
     */
    @ApiModelProperty(value = "汇总类型 #OrderReportType{CPS_ORDER:商家收款;IOTCL:充电线;}")
    private OrderReportType orderReportType;
    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额")
    private Long transAmt;
    /**
     * 交易笔数
     */
    @ApiModelProperty(value = "交易笔数")
    private Long transCount;
    /**
     * 成功笔数
     */
    @ApiModelProperty(value = "成功笔数")
    private Long successCount;
    /**
     * 成功比例
     */
    @ApiModelProperty(value = "成功比例")
    private Long successRate;

}
